package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 索引模型
 * 
 * @author ultrafrog
 * @version 1.0, 2015-03-30
 * @since 1.0
 */
@Entity
@Table(name = "dbc_index")
public class Index extends Model {

	/** 名称 */
	@Column(name = "vc_name")
	public String name;
	
	/** 唯一 */
	@Column(name = "dc_unique")
	public String unique;
	
	/** 类型 */
	@Column(name = "dc_type")
	public String type;
	
	/** 数据表编号 */
	@Column(name = "fk_table_id")
	public String tableId;
	
	/**
	 * 类型
	 * 
	 * @author ultrafrog
	 * @version 1.0, 2015-04-06
	 * @since 1.0
	 */
	public static class Type {
		
		public static final String PRIMARY	= "00";
		
		public static final String INDEX	= "01";
	}
}
